
const assert = require('assert')
const {it} = require('mocha')

// describe 一组测试
// it 一个测试

function sum () {
  return 0
}


describe('test1',() => {
  describe('test1-1',() => {
    it('sum()结果返回0',() => {
      assert.strictEqual(sum(),0)
    })
    it('sum(1)结果返回0',() => {
      assert.strictEqual(sum(1),1)
    })
    it('sum(1,2,3)结果返回0',() => {
      assert.strictEqual(sum(1,2,3),6)
    })
  })
})
describe('test2',() => {
  describe('test1-1',() => {
    it('sum()结果返回0',() => {
      assert.strictEqual(sum(),0)
    })
    it('sum(1)结果返回0',() => {
      assert.strictEqual(sum(1),1)
    })
    it('sum(1,2,3)结果返回0',() => {
      assert.strictEqual(sum(1,2,3),6)
    })
  })
})
describe('test3',() => {
  describe('test1-1',() => {
    it('sum()结果返回0',() => {
      assert.strictEqual(sum(),0)
    })
    it('sum(1)结果返回0',() => {
      assert.strictEqual(sum(1),1)
    })
    it('sum(1,2,3)结果返回0',() => {
      assert.strictEqual(sum(1,2,3),6)
    })
  })
})